package priv.cwr.springboot.demo.model.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;

/**
 * User: R
 * Date: 2018/8/29
 * Time: 11:04
 * Created with IntelliJ IDEA.
 */
@Data
public class UserAddForm {

    @NotBlank(message = "{User.NotBlank.name}")
    private String name;

    @NotBlank(message = "{User.NotBlank.phone}")
    private String phone;

    @JsonProperty("dept_id")
    @Range(min = 1, max = 99999999999L, message = "{User.Range.deptId}")
    @ApiModelProperty("部门id")
    private Long deptId;

    private String introduce;
}
